package com.yan.gulimall.auth.feign;

import com.yan.common.utils.R;
import com.yan.gulimall.auth.vo.SocialUserVo;
import com.yan.gulimall.auth.vo.UserLoginVo;
import com.yan.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("member/member/register")
    public R reg(@RequestBody UserRegisterVo vo);

    @PostMapping("member/member/login")
    public R login(@RequestBody UserLoginVo vo);

    @PostMapping("member/member/oauth/login")
    public R oauthLogin(@RequestBody SocialUserVo vo) throws Exception;

}
